<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/style-q.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/Project.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../ht-css/style-q.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/custom.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/Member/signingInquiries.css" />
    <title>签约账号查询查看详情</title>
</head>
<style>
    .mail_title {
        background: #f5f5f5;
        width: 1321px;
        height: 37px;
        margin: 4px 0px 2px 21px;
        margin-top: 30px;
    }
    .curr{border:2px solid #f08327;padding:5px 0 5px 10px;background: #fff url(../../../img/12.png) no-repeat 252px bottom;}
    .curr2{border:1px solid #dddddd;padding:5px 0 5px 10px;}
    .colorValue{background: gainsboro;}


</style>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页  <span class="c-gray en">&gt;</span>发票管理<span class="c-gray en">&gt;</span>可补开发票<span class="c-gray en">&gt;</span>补开发票<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <div id="tab_topnav" class="HuiTab">
        <div class="tabCon bk-gray bg-1">
            <form method="post">
                <div class="bg-1 pb-10">
                    <div class="kehu">
                        <strong>发票信息</strong>
                    </div>
                    <input style="display: none" id="default" value="100">
                    <div class="xian"></div>
                    <div >
                        <span style="position: initial;margin-left: 67px;">
                         <input id="invoice"  type="button" class="btn  radius size-S w-120" onclick="switchs(1)" style="color: rgb(255, 255, 255);background-color: rgb(74, 144, 226);border-color: rgb(74, 144, 226);" value="普通发票" >
                        </span>
                        <span style="position: initial;margin-left: 46px;">
                        <input id="invoice2"  type="button" class="btn  radius size-S w-120" onclick="switchs(2)"  value="增值税专用发票" >
                        </span>
                    </div>
                    <div class="lh-30 mb-10">
                        <!--普通发票-->
                        <table class="table_li mb-10 table" id="ordinaryInvoice">
                            <thead class="text-l">
                            <input style="display: none" id="crm_invoice_ids">
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 102px;" class="form-label f-l label-right w-60">温馨提示：</label>
                                        <div style="width: 474px;" class="formControls w-300 ml-10 lh-26" >自2017年7月1日起，开具企业发票必须提供企业税号。</div>
                                    </div>
                                </td>

                            </tr>
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 102px;" class="form-label f-l label-right w-60"><span class="c-red pr-5">*</span>发票抬头：</label>
                                        <input type="text" style="width: 264px;" class="radius curr" name="couponName" onclick="styles(1)" id="topicName" placeholder="" value="个人" readonly>
                                    </div>
                                    <a style="margin-left: 112px;" id="addInvoice" onclick="addInvoice()">新增单位发票</a>
                                </td>
                            </tr>
                            <tr style="display: none" id="InvoiceTitles" class="addInvoice">
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 100px;" class="form-label f-l label-right w-60"></label>
                                        <input type="text" style="width: 264px;" class="radius curr2" name="couponName" onclick="styles(2)" maxlength="50" id="topicName2" placeholder="请输入新增单位发票抬头" value=""   autocomplete="off">

                                    </div>
                                </td>
                            </tr>
                            <tr style="display: none" id="IdentificationCodes" class="addInvoice">
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 100px;" class="form-label f-l label-right w-60"><span class="c-red pr-5">*</span>纳税人识别码：</label>
                                        <input type="text" style="width: 279px;" class="input-text radius" name="couponName" maxlength="20" id="taxpayer_code" placeholder="请输入纳税人识别码" value="" onkeyup="value=value.replace(/[\W]/g,'')" autocomplete="off">

                                    </div>
                                </td>
                            </tr>
                            </thead>
                        </table>
                        <!--签约普通发票-->
                        <table class="table_li mb-10 table" id="signUp_ordinaryInvoice"  style="display: none">
                            <thead class="text-l">
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 102px;" class="form-label f-l label-right w-60">温馨提示：</label>
                                        <div style="width: 474px;" class="formControls w-300 ml-10 lh-26" >自2017年7月1日起，开具企业发票必须提供企业税号。</div>
                                    </div>
                                </td>

                            </tr>
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 102px;" class="form-label f-l label-right w-60"><span class="c-red pr-5">*</span>发票抬头：</label>
                                    </div>
                                </td>
                            </tr>

                            <table class="table_li table" id="tableli" style="margin-top: -52px;overflow-y: auto;max-height: 155px;min-height: 60px;">

                            </table>

                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10" id="IdentificationCodeall" style="display: none">
                                        <label style="width: 100px;" class="form-label f-l label-right w-60"><span class="c-red pr-5">*</span>纳税人识别码：</label>
                                        <div style="width: 474px;height: 16px" class="formControls w-300 ml-10 lh-26" id="IdentificationCode"></div>
                                    </div>
                                </td>
                            </tr>
                            </thead>
                        </table>
                        <!--增值税专用发票-->
                        <table class="table_li mb-10 table" id="VATInvoice" style="display: none">
                            <thead class="text-l">
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 102px;" class="form-label f-l label-right w-60"></label>
                                        <div style="width: 474px;" class="formControls w-300 ml-10 lh-26" >完善并核对公司信息 <a id="switchInvoices" style="display: none" onclick="switchInvoice()">切换发票></a></div>
                                    </div>

                                </td>

                            </tr>
                            <tr>
                                <td class="col-4-1 text-l">
                                    <input  style="display: none" id="ids">
                                    <input value="" id="crm_invoice_id" style="display: none">
                                    <div class="row ml-10">
                                        <label style="width: 102px;" class="form-label f-l label-right w-60"><span class="c-red pr-5">*</span>单位名称：</label>
                                        <input type="text" style="width: 279px;" class="input-text radius colorValue" name="couponName" id="company_name" placeholder="" value="" readonly >
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 102px;" class="form-label f-l label-right w-60"><span class="c-red pr-5">*</span>纳税人识别码：</label>
                                        <input type="text" style="width: 279px;" class="input-text radius colorValue" name="couponName" id="taxpayer_codes" placeholder="" value="" readonly>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 102px;" class="form-label f-l label-right w-60"><span class="c-red pr-5">*</span>注册地址：</label>
                                        <input type="text" style="width: 279px;" class="input-text radius colorValue" name="couponName" id="reg_address" placeholder="" value="" autocomplete="off"  maxlength="50" onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5]/g,'')" onpaste="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5]/g,'')" oncontextmenu="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5]/g,'')" readonly>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 102px;" class="form-label f-l label-right w-60"><span class="c-red pr-5">*</span>注册电话：</label>
                                        <input type="text" style="width: 279px;" class="input-text radius colorValue" name="couponName" id="reg_telephone" placeholder="" value="" autocomplete="off" maxlength="11" onkeyup="onunm(this)" readonly>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 102px;" class="form-label f-l label-right w-60"><span class="c-red pr-5">*</span>开户银行：</label>
                                        <input type="text" style="width: 279px;" class="input-text radius colorValue" name="couponName" id="open_account_bank" placeholder="" value="" autocomplete="off" maxlength="50" onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5]/g,'')" onpaste="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5]/g,'')" oncontextmenu="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5]/g,'')" readonly>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 102px;" class="form-label f-l label-right w-60"><span class="c-red pr-5">*</span>银行账户：</label>
                                        <input type="text" style="width: 279px;" class="input-text radius colorValue" name="couponName" id="bank_account" placeholder="" value="" autocomplete="off" maxlength="50" onkeyup="onunm(this)" readonly>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 102px;" class="form-label f-l label-right w-60">备注信息：</label>
                                        <textarea name="remarkVal"  class="textarea radius" id="comfirmRemark" placeholder="" style="width: 281px;height: 73px;" autocomplete="off" maxlength="200"></textarea>
                                    </div>
                                </td>
                            </tr>
                            </thead>
                        </table>
                        <div class="mail_title"><b>邮寄地址</b></div>
                        <table class="table_li mb-10 table">
                            <thead class="text-l">
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 102px;" class="form-label f-l label-right w-60">邮寄区域：</label>
                                        <select style="width: 111px;" class="select radius label-right" onchange="discountdatas(1)" name="brandclass" id="getProvinces" size="1">
                                            <option value="" data-id="" selected>请选择邮寄区域</option>
                                        </select>

                                        <select style="width: 111px;" class="select radius label-right" onchange="discountdatas(2)" name="brandclass" id="getCitys"  size="1">
                                            <option value=""  data-id=""  selected>请选择邮寄区域</option>
                                        </select>

                                        <select style="width: 111px;white-space: pre" class="select radius label-right" onchange="discountdatas(3)" name="brandclass" id="getAreas"  size="1">
                                            <option value=""  data-id=""  selected>请选择邮寄区域</option>
                                        </select>
                                        <select style="width: 111px;white-space: pre;display: none" class="select radius label-right" name="brandclass" id="getCounty"  size="1">
                                            <option value=""  data-id=""  selected>请选择邮寄区域</option>
                                        </select>
                                    </div>
                                </td>

                            </tr>
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 100px;" class="form-label f-l label-right w-60">详细地址：</label>
                                        <input type="text" style="width: 279px;" class="input-text radius" name="couponName" maxlength="50" id="detailAddress" placeholder="" value="" autocomplete="off">

                                    </div>
                                </td>
                            </tr>
                            <tr >
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 100px;" class="form-label f-l label-right w-60">收件人：</label>
                                        <input type="text" style="width: 279px;" class="input-text radius" maxlength="10" name="couponName" id="linkman" placeholder="" value="" autocomplete="off" onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5]/g,'')" onpaste="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5]/g,'')">

                                    </div>
                                </td>
                            </tr>
                            <tr >
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label style="width: 100px;" class="form-label f-l label-right w-60">联系方式：</label>
                                        <input type="text" style="width: 279px;" class="input-text radius" maxlength="11" name="couponName" id="officePhone" placeholder="" value="" autocomplete="off" onkeyup="onunm(this)" >

                                    </div>
                                </td>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div style="position: initial;text-align: center;">
                        <input  type="button" class="btn btn-secondary radius size-S " onclick="submitInformation()" value="提交信息" style="width: 98px;">

                    </div>
                </div>
            </form>

        </div>

    </div>
    <!--切换发票-->
    <div id="switchInvoice" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog" style="top:34%;margin-top:-225px">
            <div class="modal-content radius" style="height:463px;width:719px;">
                <div class="modal-header"  >
                    <h3 class="modal-title text-c"><span class="addressTitle">发票信息选择</span></h3>
                </div>
                <div id="zhanshi">
                    <div class="mt-20">
                        <div  style="overflow-y: auto;max-height: 280px;">
                            <table class="table table-border table-bg table-hover table-sort" id="tables">
                                <tbody id="switchInvoicedata">

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="text-c" style="padding-top: 50px">
                    <a onclick="close_switchInvoice()" class="btn radius size-S mr-10">取消</a>
                    <a onclick="switchInvoiceadd()" class="btn btn-secondary radius size-S">确定</a>
                </div>
            </div>
        </div>
    </div>

</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script>
<!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../lib/jquery.jedate.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<script src="../../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../ht-js/Project.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../ht-js/frame/doT.min.js?rev=@@hash"></script>
<script src="../../../ht-js/order/supplementaryInvoice_page.js?rev=@@hash"></script>

<script>
    $(function() {
        $("#brandSearchForm").Validform({
            tiptype: 2,
            callback: function(form) {
                brand_list(1, 50, $("#brandName").val());
                return false;
            }
        });
        $("#cxManage").Validform({
            tiptype: 2,
            callback: function(form) {
                cx_list();
                return false;
            }
        });
    })
    function timeSet(startEl,endEl,timeFormat){
        /*startEl=>开始时间Input的id，endEl=>结束时间Input的id，时间格式（YYYY-MM-DD hh:mm:ss  YYYY年MM月DD日 hh:mm:ss）*/
        /*时间设置*/
        var start = {
            format: timeFormat,
            maxDate: $.nowDate(),
            okfun: function(obj){
                end.minDate = obj.val; //开始日选好后，重置结束日的最小日期
            }
        };
        var end = {
            format: timeFormat,
            maxDate: $.nowDate(),
            okfun: function(obj){
                start.maxDate = obj.val; //将结束日的初始值设定为开始日的最大日期
            }
        };
        $.jeDate(startEl,start);
        $.jeDate(endEl,end);
    }
    timeSet("#timemin","#timemax","YYYY-MM-DD hh:mm:ss");

    jQuery.Huitab = function(tabBar, tabCon, class_name, tabEvent, i) {
        var $tab_menu = $(tabBar);
        // 初始化操作
        $tab_menu.removeClass(class_name);
        $(tabBar).eq(i).addClass(class_name);
        $(tabCon).hide();
        $(tabCon).eq(i).show();
        $tab_menu.bind(tabEvent, function() {
            $tab_menu.removeClass(class_name);
            $(this).addClass(class_name);
            var index = $tab_menu.index(this);
            $(tabCon).hide();
            $(tabCon).eq(index).show();
        });
    }

    $(function() {
        $.Huitab("#tab_topnav .tabBar span", "#tab_topnav .tabCon", "current", "click", "0")
    });
    // #tab_demo 父级id
    // #tab_demo .tabBar span 控制条
    // #tab_demo .tabCon 内容区
    // click 事件 点击切换，可以换成mousemove 移动鼠标切换
    // 1	默认第2个tab为当前状态（从0开始）
    // 刷新
    function reload() {
        //location.replace(location.href);
        window.location.reload(location.href);
    }


</script>
</body>
</html>